<template>
    <el-container class="home-container">
        <!-- 头部区域 -->
        <el-header>
            <div>
                <img src="../assets/heima.png" alt="" />
                <span>硅谷商城管理端</span>
            </div>
            <el-button type="info">退出</el-button>
        </el-header>
        <!-- 页面主体区域 -->
        <el-container>
            <!-- 侧边栏 :给属性动态值 -->
            <el-aside width="200px">
                <!-- 侧边栏菜单区域 -->
                <el-menu router>
                    <el-submenu index="1">
                        <template slot="title"><i class="el-icon-setting"></i>权限相关</template>
                        <el-menu-item index="/user">用户管理</el-menu-item>
                        <el-menu-item index="/right">角色管理</el-menu-item>  
                    </el-submenu>
                    <el-submenu index="2">
                        <template slot="title"><i class="el-icon-camera-solid"></i>商品数据</template>
                        <el-menu-item index="3-4-1">选项4-1</el-menu-item>
                        <el-menu-item index="3-4-1">选项4-1</el-menu-item>
                        <el-menu-item index="3-4-1">选项4-1</el-menu-item>
                    </el-submenu>
                    <el-submenu index="3">
                        <template slot="title"><i class="el-icon-setting"></i>导航三</template>
                        <el-menu-item index="3-4-1">选项4-1</el-menu-item>
                        <el-menu-item index="3-4-1">选项4-1</el-menu-item>
                        <el-menu-item index="3-4-1">选项4-1</el-menu-item>
                    </el-submenu>

                </el-menu>
            </el-aside>
            <!-- 右侧内容主体 -->
            <el-main>
                <!-- 路由占位符 -->
                <router-view></router-view>
            </el-main>
        </el-container>
    </el-container>
</template>

<script>

</script>

<style lang="less" scoped>
.home-container {
    height: 100%;
}

.el-header {
    background-color: #373d41;
    display: flex;
    justify-content: space-between;
    padding-left: 0;
    align-items: center;
    color: #fff;
    font-size: 20px;

    >div {
        display: flex;
        align-items: center;

        span {
            margin-left: 15px;
        }
    }
}

.el-aside {
    background-color: #333744;

    .el-menu {
        border-right: none;
    }
}

.el-main {
    background-color: #eaedf1;
}

.iconfont {
    margin-right: 10px;
}

.toggle-button {
    background-color: #4a5064;
    font-size: 10px;
    line-height: 24px;
    color: #fff;
    text-align: center;
    letter-spacing: 0.2em;
    cursor: pointer;
}
</style>